We use a dataset with geolaction of the main cities in Spain, as well as data regarding male and female population, region and province.
## 'data.frame': 750 obs. of 9 variables: ## $ region : Factor w/ 18 levels "Andalucía","Aragón",..: 1 1 1 1 1 1 1 1 1 1 ... ## $ province : Factor w/ 52 levels "A Coruña","Álava",..: 5 5 5 5 5 5 5 5 5 5 ... ## $ city : Factor w/ 750 levels "Abarán","Abrera",..: 4 15 49 131 238 254 318 319 442 541 ... ## $ lat : num 36.7 37.4 36.8 36.8 37.3 ... ## $ lng : num -3.02 -2.15 -2.47 -2.95 -1.88 ... ## $ altitude : num 11 426.4 27 340.8 97.3 ... ## $ population: int 24373 11178 188810 15035 13025 84227 17645 14937 26516 82665 ... ## $ males : int 12338 5731 92396 7542 6819 47263 8800 7623 14653 43095 ... ## $ females : int 12035 5447 96414 7493 6206 36964 8845 7314 11863 39570 ...